var mMovieData = {
	typeList:[
		{id:1,name:'ANIMATION',image:'images/animation.png',highImage:'images/animation_h.png'},
		{id:2,name:'ACTION',image:'images/action.png',highImage:'images/action_h.png'},
		{id:3,name:'ROMANTIC',image:'images/romantic.png',highImage:'images/romantic_h.png'},
		{id:4,name:'HORROR',image:'images/horror.png',highImage:'images/horror_h.png'},
		{id:5,name:'3D',image:'images/3d.png',highImage:'images/3d_h.png'},
	],
	movieList:[
		{id:1,typeId:1,name:'m1',icon:'images/m1.png',mode:4,playUrl:'http://192.168.55.90/vod/toy.mkv'},
		{id:2,typeId:1,name:'m2',icon:'images/m2.png',mode:4,playUrl:'http://192.168.55.90/vod/mega.mkv'},
		{id:3,typeId:1,name:'m3',icon:'images/m3.png',mode:0,playUrl:'rtsp://192.168.1.1:554/vod/tes3.mp4'},
		{id:4,typeId:2,name:'m4',icon:'images/m1.png',mode:4,playUrl:'http://192.168.55.90/vod/mi4.mkv'},
		{id:5,typeId:2,name:'m5',icon:'images/m2.png',mode:0,playUrl:'rtsp://192.168.1.1:554/vod/tes5.mp4'},
		{id:6,typeId:4,name:'m6',icon:'images/m3.png',mode:0,playUrl:'rtsp://192.168.1.1:554/vod/tes6.mp4'},
		{id:7,typeId:3,name:'m7',icon:'images/m1.png',mode:0,playUrl:'rtsp://192.168.1.1:554/vod/tes7.mp4'},
		{id:8,typeId:5,name:'m8',icon:'images/m2.png',mode:0,playUrl:'rtsp://192.168.1.1:554/vod/tes8.mp4'},
	]
}

var typeList;
function initData(callback){
	typeList = mMovieData.typeList;
	
	for(var i = 0;i<typeList.length;i++){
		var type = typeList[i];
		var list = new Array();
		for(var j = 0;j<mMovieData.movieList.length;j++){
			var ch = mMovieData.movieList[j];
			if(ch.typeId == type.id){
				list.push(ch);
			}
		}
		type.dataList = list;
	}
	
	callback();
}